home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
flilib
/
flisrc
/
jsetcolo.asm
< prev
next >
Wrap
Assembly Source File
|
1989-11-10
|
570b
|
54 lines
_TEXT SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS: _TEXT
;set the old color map
public _aa_set_colors
_aa_set_colors proc far
;aa_set_colors(0, 256, vga_cmap);
push bp
mov bp,sp
push cx
push bx
push ds
push si
cld
mov bx,[bp+4+2]
mov cx,[bp+6+2]
lds si,[bp+8+2]
st1:
mov dx,3c8h
mov al,bl
out dx,al
inc bl
inc dx
jmp s1
s1:
lodsb
out dx,al
jmp s2
s2:
lodsb
out dx,al
jmp s3
s3:
lodsb
out dx,al
loop st1
pop si
pop ds
pop bx
pop cx
pop bp
ret
_aa_set_colors endp
_TEXT ENDS
END